HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/builds/repositories/create.yaml
- help_text:
    brief: Create a Cloud Build repository
    description: Create a Cloud Build repository in a connection.
    examples: |
      To Create a repository with name ``my-repo'' in the connection ``my-conn'',
      run the following command:

      $ {command} my-repo --remote-uri=https://github.com/octocat/Hello-World.git \
          --connection=my-conn --region=us-central1

  request:
    collection: cloudbuild.projects.locations.connections.repositories
    api_version: v2

  arguments:
    resource:
      help_text: Repository to create.
      spec: !REF googlecloudsdk.command_lib.cloudbuild.resources_v2:repository
    params:
    - api_field: repository.remoteUri
      arg_name: remote-uri
      help_text: The remote git clone URL of the repository.
      required: true

  async:
    collection: cloudbuild.projects.locations.operations